function Const() {
  return {
    ERROR: {
      ALREADY_EXISTS: 6,
      INVALID_USER_NAME: 5,
      ERROR_PASSWORD: 3,
      ERROR_NETWORK: -10000,
      ERROR_INVALID: -1,
      ERROR_PARAM_NOT_SET: 1,
      ERROR_TOKEN_INVALID: 2,
      ERROR_LOGIN_FAIL: 3,
      ERROR_WRONG_PARAM: 4,
      ERROR_NOT_EXIST: 5,
      ERROR_EXIST: 6,
      ERROR_ORG_NOT_EXIST: 7,
      ERROR_ORG_MEMBER_NOT_EXISTS: 8,
      ERROR_REGISTER: 9,
      ERROR_USER_NOT_EXISTS: 10,
      ERROR_PHONE_HAS_BEEN_TAKEN: 11,
      ERROR_BIND_USER_BIND_EXISTS: 12,
      ERROR_WRONG_TYPE: 13,
      ERROR_SAVE_ERROR: 14,
      ERROR_ACTION_NOT_ALLOWED: 15,
      ERROR_WRONG_VERIFICATION_CODE: 16,
      ERROR_SEND_PHONE_VCODE_TOO_OFTEN: 17
    },
    SYSTEM: {
      LOG_LEVEL_ERROR: 1,
      LOG_LEVEL_WARN: 2,
      LOG_LEVEL_INFO: 3,
      LOG_LEVEL_TRACE: 4,
      LOG_LEVEL_DEBUG: 5
    },

    NET: {
      END_POINT: 'https://api.ajaiot.com/client/1'
    },

    DATA: {
      KEY_PREFIX: 'pts.admin.data.',
      KEY_TOKEN: 'token',
      KEY_USER: 'user',
      KEY_USER_TYPE: 'user-type',
    },

    USER_TYPE: {
      USER: 1,
      ADMIN: 2
    }
  };
}

export default new Const();
